package cn.ycl.system.other.study.designMode.combination;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author YuanChangLiang
 * @description
 * @date created in 16:25 2021/5/31
 */

@Data
@EqualsAndHashCode(callSuper = false)
public class Manager extends Component{
    // 管理的组件
    private List<Component> components = new ArrayList<>();

    public Manager(String position, String job) {
        super(position, job);
    }

    @Override
    public void addComponent(Component component) {
        components.add(component);
    }

}
